<style>
.lt_css th{height:35px;background-color:#F0F6FF;cursor:pointer}
.disClc{background:#FCF9CE;margin:5px;padding:2px 5px 2px 5px}
.onClc{background:#D9DC00;}
</style>
<script type="text/javascript">
var _lotto_id = {lotto_id};
var _gametype = "{gametype}";  // 跨页面
// 表格
$(function(){
  $("div#mainPageData").hide();
  $("div#errormsg").text("赔率更新中...请稍等...");

  // 取得赔率资料
  $().getR1data(_lotto_id,_gametype);
  
  // 切换赔率
  $("select#slcDisk").change(function(){
    $("input#disk").attr("value",$("select#slcDisk option:selected").val());
    $().getR1data(_lotto_id,_gametype);
  });
  
  $("span#setMyNum2 input:button").click(function(){
      var timebtnType = $("input:hidden#timebtnType").val();
      var setMyNumVal = "*";
      $("tbody#tbdrr0 input:"+timebtnType).val("");
      var tbdStr = "tbody#tbdrr0 input:" + timebtnType;
      $(tbdStr).disBckColor();     
      switch($(this).index()){
      case 0: // 大
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 10) > 4;
      }).val("*").chgBckColor();
      break;
      case 1: // 小
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 10) < 5;
      }).val("*").chgBckColor();
      break;
      case 2: // 单
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 2 == 1);
      }).val("*").chgBckColor();
      break;
      case 3: // 双
      $(tbdStr).filter(function(index,ele){
        var myN = $(ele).attr("name").split("_");
        return (myN[1] % 2 == 0);
      }).val("*").chgBckColor();
      
      break;
      case 4: // 质  1, 2, 3, 5, 7
      $(tbdStr).filter(function(idx,ele){
        var myN = $(ele).attr("name").split("_");
        if(myN[1] == 0){return false;}else if((myN[1] % 10 == 1) || (myN[1] % 10 == 2) || (myN[1] % 10 == 3)|| (myN[1] % 10 == 5) || (myN[1] % 10 == 7) ){return true;}else{return false;}
        }).val("*").chgBckColor();
      break;
      case 5: // 合  0, 4, 6, 8, 9
      $(tbdStr).filter(function(idx,ele){
        var myN = $(ele).attr("name").split("_");
        if(myN[1] == 0){return true;}else if((myN[1] % 10 == 0) || (myN[1] % 10 == 4) || (myN[1] % 10 == 6)|| (myN[1] % 10 == 8) || (myN[1] % 10 == 9) ){return true;}else{return false;}
        }).val("*").chgBckColor();
      break;
    }
    if(timebtnType=="checkbox"){
      $("table#tblNowBet input:checkbox[name^='r']:checked").parent().removeClass("k1");
	  $("table#tblNowBet input:checkbox[name^='r'][value='*']").parent().addClass("k1");
	  $("table#tblNowBet input:checkbox[name^='r']:checked").removeAttr("checked");
	  $("table#tblNowBet input:checkbox[name^='r'][value='*']").attr("checked","checked"); 
    }
    
  });
  
  // 取消
  $("input:reset").click(function(){
    var timebtnType = $("input:hidden#timebtnType").val();
    $("tbody#tbdrr0 input:" + timebtnType).disBckColor();     
  });
  //路途
  $(".disClc").bind("click",function(b){
		var row=$(this).attr("tag");
		$("#lt_table tr[class='td2']").hide();
		$(".onClc").removeClass("onClc");
		$(this).addClass("onClc");
		$("#lt_tr_"+row).show();
	});
});





</script>
<div id="errormsg"></div>
<div id="mainPageData">
<form action="{action}" method="post" style="margin-top:0" >
<input type="hidden" value="{bettypegroup}" name="bettypegroup" />
<input type="hidden" value="{timebtnType}" name="timebtnType" id="timebtnType" />
<input type="hidden" value="" name="disk" id="disk" />

<table>
<tr>
<td valign="top">
<table class="tblMy3D" width="700" id="tblNowBet">
<thead>
<tr class="bgClc_{gametype}"><th colspan="15">主盘势</th></tr>
<tr class="td2" style="font-weight: 100;">
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
<th>号码</th><th>赔率</th><th>选择</th>
</tr>
</thead>
<tbody id="tbdrr0">
<tr class="td2" align="center"></tr>
<tr class="td2" align="center"></tr>
</tbody>
</table>



<table class="tblMy3D" width="700" id="tblNowBet02" style="text-align:center">
<thead>
  <tr class="td2">
  <th>&nbsp;</th>
  <th colspan="2">大</th><th colspan="2">小</th>
  <th colspan="2">单</th><th colspan="2">双</th>
  <th colspan="2">质</th><th colspan="2">合</th>
  </tr>
</thead>
<tbody>
  <tr class="td2">
  <th>佰</th>
  <td class="betnum" id="td_r4_1">&nbsp;</td><td class="k3"><input type="text" name="r4_1" size="3"></td> 
  <td class="betnum" id="td_r4_2">&nbsp;</td><td class="k3"><input type="text" name="r4_2" size="3"></td>
  <td class="betnum" id="td_r7_1">&nbsp;</td><td class="k3"><input type="text" name="r7_1" size="3"></td>
  <td class="betnum" id="td_r7_2">&nbsp;</td><td class="k3"><input type="text" name="r7_2" size="3"></td>
  <td class="betnum" id="td_r10_1">&nbsp;</td><td class="k3"><input type="text" name="r10_1" size="3"></td>
  <td class="betnum" id="td_r10_2">&nbsp;</td><td class="k3"><input type="text" name="r10_2" size="3"></td>
  </tr>
  
  <tr class="td2">
  <th>拾</th>
  <td class="betnum" id="td_r5_1">&nbsp;</td><td class="k3"><input type="text" name="r5_1" size="3"></td>
  <td class="betnum" id="td_r5_2">&nbsp;</td><td class="k3"><input type="text" name="r5_2" size="3"></td>
  <td class="betnum" id="td_r8_1">&nbsp;</td><td class="k3"><input type="text" name="r8_1" size="3"></td>
  <td class="betnum" id="td_r8_2">&nbsp;</td><td class="k3"><input type="text" name="r8_2" size="3"></td>
  <td class="betnum" id="td_r11_1">&nbsp;</td><td class="k3"><input type="text" name="r11_1" size="3"></td>
  <td class="betnum" id="td_r11_2">&nbsp;</td><td class="k3"><input type="text" name="r11_2" size="3"></td>
  </tr>
  
  <tr class="td2">
  <th>个</th>
  <td class="betnum" id="td_r6_1">&nbsp;</td><td class="k3"><input type="text" name="r6_1" size="3"></td>
  <td class="betnum" id="td_r6_2">&nbsp;</td><td class="k3"><input type="text" name="r6_2" size="3"></td>
  <td class="betnum" id="td_r9_1">&nbsp;</td><td class="k3"><input type="text" name="r9_1" size="3"></td>
  <td class="betnum" id="td_r9_2">&nbsp;</td><td class="k3"><input type="text" name="r9_2" size="3"></td>
  <td class="betnum" id="td_r12_1">&nbsp;</td><td class="k3"><input type="text" name="r12_1" size="3"></td>
  <td class="betnum" id="td_r12_2">&nbsp;</td><td class="k3"><input type="text" name="r12_2" size="3"></td>
  </tr>
  
  <tr class="td2">
  <th>佰拾和数 OOX</th>
  <td></td><td></td><td></td><td></td>
  <td class="betnum" id="td_r17_1">&nbsp;</td><td class="k3"><input type="text" name="r17_1" size="3"></td>
  <td class="betnum" id="td_r17_2">&nbsp;</td><td class="k3"><input type="text" name="r17_2" size="3"></td>
  <td></td><td></td><td></td><td></td>
  </tr>
  
  <tr class="td2">
  <th>佰个和数 OXO</th>
  <td></td><td></td><td></td><td></td>
  <td class="betnum" id="td_r18_1">&nbsp;</td><td class="k3"><input type="text" name="r18_1" size="3"></td>
  <td class="betnum" id="td_r18_2">&nbsp;</td><td class="k3"><input type="text" name="r18_2" size="3"></td>
  <td></td><td></td><td></td><td></td>
  </tr>
  
  <tr class="td2">
  <th>拾个和数 XOO</th>
  <td></td><td></td><td></td><td></td>
  <td class="betnum" id="td_r19_1">&nbsp;</td><td class="k3"><input type="text" name="r19_1" size="3"></td>
  <td class="betnum" id="td_r19_2">&nbsp;</td><td class="k3"><input type="text" name="r19_2" size="3"></td>
  <td></td><td></td><td></td><td></td>
  </tr>

  <tr class="td2">
  <th>佰拾个和数 OOO</th>
  <td class="betnum" id="td_r22_1">&nbsp;</td><td class="k3"><input type="text" name="r22_1" size="3"></td>
  <td class="betnum" id="td_r22_2">&nbsp;</td><td class="k3"><input type="text" name="r22_2" size="3"></td>
  <td class="betnum" id="td_r23_1">&nbsp;</td><td class="k3"><input type="text" name="r23_1" size="3"></td>
  <td class="betnum" id="td_r23_2">&nbsp;</td><td class="k3"><input type="text" name="r23_2" size="3"></td>
  <td></td><td></td><td></td><td></td>
  </tr>
</tbody>
</table>

<div class="btnDivArea">
◎&nbsp;&nbsp;不定位快选
  <span id="setMyNum2">
  <input type="button" value="大" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="小" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="单" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="双" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="质" class="colorBtn01 clrBrd_{gametype}" />
  <input type="button" value="合" class="colorBtn01 clrBrd_{gametype}" />
  </span>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;金额
  <input type="text" value="" id="setMomney" size="3" />
  <input type="button" id="btnSetMyNum" value="转送" />
  <input type="submit" value="确定" />
  <input type="reset" value="取消" />
</div>
</form>

</div>
</div>
<div>
{lt_table}
</div>
</td>
<td valign="top" style="padding-right:5px;">{display}</td>
</tr>
</table>
<script> 
function check_box(n){
  location.href="op.php?op=member_3d&fp=bet&palygroup={bettypegroup}&gametype={gametype}&number="+n;}
</script>   